﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
</asp:Content>

<asp:Content class="container" ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div>
        <asp:ValidationSummary ID="ValidationSummary2" runat="server" 
        HeaderText="An Error Has Occured, please fix it and try again" ValidationGroup="eval"></asp:ValidationSummary>

        <asp:ValidationSummary ID="ValidationSummary3" runat="server"
        HeaderText="An Error Has Occured, Please Fix It And Try Again" CssClass="LoginVal"></asp:ValidationSummary>




        <asp:HyperLink ID="backHP" runat="server" NavigateUrl="~/Default.aspx">back</asp:HyperLink>
        <div>

            <asp:Label runat="server" ID="UsernameLabel"> Username </asp:Label>
            <asp:TextBox runat="server" ID="Username"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ErrorMessage="Enter A Username"
                ValidationGroup="eval" ControlToValidate="Username">*</asp:RequiredFieldValidator>

        </div>
        <div>

            <asp:Label runat="server" ID="PasswordLabel"> Password </asp:Label>
            <asp:TextBox TextMode="Password" runat="server" ID="Password"></asp:TextBox>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ErrorMessage="Enter A Password"
                ValidationGroup="eval" ControlToValidate="Password">*</asp:RequiredFieldValidator>

            <asp:CompareValidator ID="CompareValidator1" ControlToCompare="Password" ControlToValidate="PasswordRepeat"
                runat="server" ErrorMessage="The Passwords Do Not Match " Display="Dynamic" ValidationGroup="eval">*</asp:CompareValidator>
        </div>
        <div>

            <asp:Label runat="server" ID="PasswordRepeatLabel"> Confirm Password </asp:Label>
            <asp:TextBox TextMode="Password" runat="server" ID="PasswordRepeat"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ErrorMessage="Confirm Your Password"
                ValidationGroup="eval" ControlToValidate="PasswordRepeat">*</asp:RequiredFieldValidator>


        </div>

        <div>

            <asp:Label runat="server" ID="EmailLabel"> Email </asp:Label>
            <asp:TextBox runat="server" ID="Email"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" ErrorMessage="Enter An Email"
                ValidationGroup="eval" ControlToValidate="Email">*</asp:RequiredFieldValidator>


        </div>

        <div>
            <asp:Image ID="imgCaptcha" ImageUrl="Captcha.ashx" runat="server" />
            <br />
            <asp:TextBox runat="server" ID="txtCaptcha"></asp:TextBox>
        </div>

        <asp:LinkButton ID="CreateButton" runat="server"
            ValidationGroup="eval" OnClick="CreateButton_Click">Create</asp:LinkButton>

    </div>
</asp:Content>

